package bjut.core.interfaces;

import bjut.core.annotation.SPI;

/**
 * @Author: zhuzhiming
 * @Date: 2022/4/12 21:29
 */
@SPI
public interface Serializer {

    byte[] serialize(Object obj);

    <T> T deserialize(byte[] bytes, Class<T> cls);

}
